﻿using System;

/*using OpenTK.Graphics;

namespace IupNET
{
    public class GLCanvas:PaintArea
    {

        static GraphicsContext ctx;
        static GLCanvas()
        {
            //otk_context=GraphicsContext.CreateDummyContext();
            //we can automatically do this in static constructor
        }

        public GLCanvas():base(Iupc.GLCanvas(null)) {

        }


        public IntPtr Context
        {
            get
            {
                return Iupc.GetAttributePtr(cobject,"CONTEXT");
            }
        }

        public IntPtr Visual
        {
            get
            {
                return Iupc.GetAttributePtr(cobject, "VISUAL");
            }
        }

        public string Error
        {
            get
            {
                return GetAttribute("ERROR");
            }

        }

        public bool DoubleBuffer
        {
            get
            {
                return GetAttribute("BUFFER") == "SINGLE" ? false : true;
            }
            set
            {
                if (value)
                    SetAttribute("BUFFER", "DOUBLE");
                else
                    SetAttribute("BUFFER", "SINGLE");
            }
        }
    }
}
*/